package com.ktgj.customer.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 会员消息表
 */
public class CustomerMessage {
    /**会员消息主键*/
    private Long customerMessageId;
   /**消息内容*/
   private String messageContent;
    /**是否已读枚举*/
    private String isRead;
    /**业务线枚举*/
    private String businessType;
    /**业务线订单号*/
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    private Long businessOrderId;
    /**创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    /**会员表主键*/
    private Long customerId;

    public Long getCustomerMessageId() {
        return customerMessageId;
    }

    public void setCustomerMessageId(Long customerMessageId) {
        this.customerMessageId = customerMessageId;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public Long getBusinessOrderId() {
        return businessOrderId;
    }

    public void setBusinessOrderId(Long businessOrderId) {
        this.businessOrderId = businessOrderId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    @Override
    public String toString() {
        return "CustomerMessage{" +
                "customerMessageId=" + customerMessageId +
                ", messageContent='" + messageContent + '\'' +
                ", isRead='" + isRead + '\'' +
                ", businessType='" + businessType + '\'' +
                ", businessOrderId=" + businessOrderId +
                ", createTime=" + createTime +
                ", customerId=" + customerId +
                '}';
    }

}
